def isNum(n):
    try:
      n=eval(n)
      if type(n)==int or type(n) == float or type(n) == complex :
         return True
      else:
         return False
    except:
      return False
a=input("请输入一个字符串：")
print(isNum(a))

